<template>
    <div>
      <el-table
    :data="data"
    style="width: 100%">
    <el-table-column type="expand">
      <template slot-scope="props">
        <el-table
        style="width: 100%" :data= props.row.methodList  
        :row-class-name="tableRowClassName" inline class="demo-table-expand">
        <el-table-column
          prop="methodName"
          label="方法名"
          width="180">
        </el-table-column>
        <el-table-column
          prop="accessAuthority"
          label="访问权限"
          width="180">
        </el-table-column>
        <el-table-column
          prop="returnType"
          label="返回值">
        </el-table-column>
      </el-table>
      </template>
    </el-table-column>
    <el-table-column
      label="类名"
      prop="className">
    </el-table-column>
  </el-table>
    </div>
    </template>
    <script>
      module.exports = {
        data() {
          return {
            data: [
    {
      className: "demo",
      methodList: [
        {
          methodName: "methodA1",
          accessAuthority: "PUBLIC",
          returnType: "void",
          parameters: [
            "q",
            "k"
          ],
          outMethodNameList: [
            "methodB1"
          ]
        },
        {
          methodName: "methodA2",
          accessAuthority: "PUBLIC",
          returnType: "void",
          parameters: null,
          outMethodNameList: [
            "methodB2"
          ]
        },
        {
          methodName: "methodA",
          accessAuthority: "PUBLIC",
          returnType: "void",
          parameters: null,
          outMethodNameList: null
        }
      ],
      rfc: 5,
      lcom: 1
    },
    {
      className: "B",
      methodList: [
        {
          methodName: "methodB1",
          accessAuthority: "PUBLIC",
          returnType: "void",
          parameters: null,
          outMethodNameList: null
        },
        {
          methodName: "methodB2",
          accessAuthority: "PUBLIC",
          returnType: "void",
          parameters: null,
          outMethodNameList: null
        }
      ],
      rfc: 2,
      lcom: 2
    }
  ],
  }
      }
    }
    </script>